import App from './App'

import { createSSRApp } from 'vue'

import { setupStore } from './business/store'

import {setupRouter} from './business/router'

import { setupConfig } from './infrastructure/config/index'

import { setupHttp } from  './infrastructure/request/interceptor'

import uView from './uni_modules/vk-uview-ui';

import "tailwindcss/tailwind.css"


export function createApp() {
	const app = createSSRApp(App)
	
	  // 使用 uView UI
	app.use(uView)

	setupRouter(app)
	
	setupConfig(app)
	
	setupHttp(app)
	
	const Pinia = setupStore(app)
	return {
		app,Pinia
	}
}